package com.javaetmoi.sample.config;

import io.peng.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Created by eric on 16/3/14.
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(MainConfig.class);
        AccountService accountService = context.getBean(AccountService.class);
//        accountService.transfer(1000000, "Peng", "Frank");

        accountService.save(1000000000, "Peng");
//        context.getBean()
    }
}
